import request from '@/utils/request';
import qs from 'qs';
// 订单管理模块接口
// 查询订单
export function getOrder(query) {
  return request({
    url: '/order/dd/queryDd',
    method: 'POST',
    data: query
  });
}
// 新增订单
export function addOrder(query) {
  return request({
    url: '/order/dd/insertDd',
    method: 'POST',
    data: query
  });
}
// 更新订单
export function updateOrder(query) {
  return request({
    url: '/order/dd/updateDd',
    method: 'POST',
    data: query
  });
}
// 删除订单
export function delOrder(query) {
  return request({
    url: '/order/dd/deleteDd',
    method: 'POST',
    data: query
  });
}
// 二级订单查询
export function getSecOrder(query) {
  return request({
    url: '/order/ddSec/queryDdSec',
    method: 'POST',
    data: query
  });
}
// 二级订单更新
export function updateSecOrder(query) {
  return request({
    url: '/order/ddSec/updateDdSec',
    method: 'POST',
    data: query
  });
}
// 合并订单
export function mergeOrder(query) {
  return request({
    url: '/order/ddSec/mergeDd',
    method: 'POST',
    data: query
  });
}
// 删除二级订单
export function delSecOrder(query) {
  return request({
    url: '/order/ddSec/deleteDdSec',
    method: 'POST',
    data: query
  });
}
// 下达订单
export function deliverOrder(query) {
  return request({
    url: '/order/xiaDaToYpjh',
    method: 'POST',
    data: query
  });
}
// 插入二级订单
export function insertOrder(query) {
  return request({
    url: '/order/ddSec/insertDdSec',
    method: 'POST',
    data: query
  });
}
